<meta charset="utf-8" />
<meta content="width=device-width, minimum-scale=1, maximum-scale=1" name="viewport">
<!-- Home -->
<div data-role="page" data-theme="d" id="page1">
	<script>
		
function popErrorMessage(errorMessage) {
		jQuery("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h5>" + errorMessage + "</h5></div>").css({
			"display": "block",
			"padding": "10px",
			"opacity": 0.8,
			"top": $(window).scrollTop() + 50,
			"left": $(window).width() / 2 - 50
		}).appendTo("#page1").delay(1500).fadeOut(700, function() {
			$(this).remove();
		});
	}

	</script>
	<div data-theme="a" data-role="header">
		<h3>
			<?php echo lang( 'login_title'); ?>
		</h3>
	</div>
	<?php if (isset ($errormessage) && !empty($errormessage) && $errormessage !="") { ?>
		<script>
			
			popErrorMessage("{errormessage}");
			
		</script>
		<?php }  ?>
			<form id="auth" action="{login_url}" method="post" data-ajax="false">
				<div data-role="content" id="loginpage">
					<div data-role="fieldcontain">
						<fieldset data-role="controlgroup" data-mini="true">
							<label for="tientui_signin_username">
								<?php echo lang( 'email'); ?>
							</label>
							<input name="email" id="tientui_signin_username" placeholder="" value="{email}" type="email" />
						</fieldset>
					</div>
					<div data-role="fieldcontain">
						<fieldset data-role="controlgroup" data-mini="true">
							<label for="tientui_signin_pwd">
								<?php echo lang( 'passwd'); ?>
							</label>
							<input name="password" id="tientui_signin_pwd" placeholder="" value="{password}" type="password" />
						</fieldset>
					</div>
					<fieldset class="ui-grid-a">
						<div class="ui-block-a">
							<input id="tientui_signin_signinbtn" data-theme="b" value="<?php echo lang('sign_in'); ?>" type="submit" data-transition="slidefade"/>
						</div>
						<div class="ui-block-c">
							<a data-role="button" data-direction="reverse" data-theme="c" href='<?php echo base_url() ?>index.php/signup'>
							<?php echo lang('sign_up'); ?>
							</a>
						</div>
					</fieldset>
					<div>
						<a id="tientui_signin_forgetpwd" href="google.com" data-transition="slidefade">
						<?php echo lang('forget_pwd'); ?>
						</a>
					</div>
				</div>
			</form>
</div>